import React, {Component} from 'react';
import './index.less';
import Particles from 'react-particles-js';
import options from "./particles_option";
import LoginForm from "../../components/LoginForm/LoginForm";
import {verifyTokenExpire} from '../../utils/tools';

export default class Login extends Component {
  UNSAFE_componentWillMount() {
    verifyTokenExpire();
  }

  render() {
    return (
      <div className="container">
        <div className="login-main">
          <h1 className='title'>资讯后台管理系统</h1>
          <LoginForm history={this.props.history}/>
        </div>
        <Particles params={options}/>
      </div>
    )
  }
}
